﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ASPNETPerformance.App_BusinessLogic.BasePages;
using ASPNETPerformance.App_BusinessLogic.Helpers;
using ASPNETPerformance.App_BusinessLogic.Utils;

namespace ASPNETPerformance._01_ViewState {
    public partial class Default : BasePage {
        protected void Page_Load( object sender, EventArgs e ) {
            if ( !Page.IsPostBack ) {
                this.GridView1.EnableViewState = CommonHelper.GetCookieBool( "IsEnableViewState" );
                GridView1.DataSourceID = dsProducts.ID;
            }
        }
    }
}